package aop03;

public class UserServiceImpl implements UserService {
    @Override
    public void regist() throws SomeException {
        System.out.println("注册方法执行");
        throw new SomeException("注册方法 抛异常");
    }

    @Override
    public void login() {
        System.out.println("登录方法执行");
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public int add(int i, int j) {
        return i+j;
    }
}
